﻿using System;
using System.Collections.Generic;
using System.Text;

namespace iTPS.Service.Core.Service
{
    using Implementations;
    public class ServiceHostFactory
    {

        public static IServiceHost Run(Action<IServiceHostConfiguration> configureCallback)
        {
            var serviceConfiguration = new DefaultServiceConfiguration();
            configureCallback.Invoke(serviceConfiguration);
            var host = new ServiceHost(serviceConfiguration);
            host.Start();
            return host;
        }
    }
}
